/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.skali.cabdirectories.model.impl;

import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;

import com.skali.cabdirectories.model.CABDirectories_Metadata;

import java.io.Serializable;

/**
 * The cache model class for representing CABDirectories_Metadata in entity cache.
 *
 * @author Prabhakar
 * @see CABDirectories_Metadata
 * @generated
 */
public class CABDirectories_MetadataCacheModel implements CacheModel<CABDirectories_Metadata>,
	Serializable {
	@Override
	public String toString() {
		StringBundler sb = new StringBundler(37);

		sb.append("{SammNo=");
		sb.append(SammNo);
		sb.append(", OrganizationName=");
		sb.append(OrganizationName);
		sb.append(", Field=");
		sb.append(Field);
		sb.append(", type_=");
		sb.append(type_);
		sb.append(", Program=");
		sb.append(Program);
		sb.append(", Status=");
		sb.append(Status);
		sb.append(", SubStatus=");
		sb.append(SubStatus);
		sb.append(", Address=");
		sb.append(Address);
		sb.append(", Contact=");
		sb.append(Contact);
		sb.append(", Tel=");
		sb.append(Tel);
		sb.append(", Fax=");
		sb.append(Fax);
		sb.append(", Email=");
		sb.append(Email);
		sb.append(", Website=");
		sb.append(Website);
		sb.append(", scope=");
		sb.append(scope);
		sb.append(", OfficerInCharge=");
		sb.append(OfficerInCharge);
		sb.append(", TelephoneNo=");
		sb.append(TelephoneNo);
		sb.append(", EmailOfficeIncharge=");
		sb.append(EmailOfficeIncharge);
		sb.append(", StandardsUsed=");
		sb.append(StandardsUsed);
		sb.append("}");

		return sb.toString();
	}

	public CABDirectories_Metadata toEntityModel() {
		CABDirectories_MetadataImpl cabDirectories_MetadataImpl = new CABDirectories_MetadataImpl();

		cabDirectories_MetadataImpl.setSammNo(SammNo);

		if (OrganizationName == null) {
			cabDirectories_MetadataImpl.setOrganizationName(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setOrganizationName(OrganizationName);
		}

		if (Field == null) {
			cabDirectories_MetadataImpl.setField(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setField(Field);
		}

		if (type_ == null) {
			cabDirectories_MetadataImpl.setType_(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setType_(type_);
		}

		if (Program == null) {
			cabDirectories_MetadataImpl.setProgram(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setProgram(Program);
		}

		if (Status == null) {
			cabDirectories_MetadataImpl.setStatus(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setStatus(Status);
		}

		if (SubStatus == null) {
			cabDirectories_MetadataImpl.setSubStatus(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setSubStatus(SubStatus);
		}

		if (Address == null) {
			cabDirectories_MetadataImpl.setAddress(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setAddress(Address);
		}

		if (Contact == null) {
			cabDirectories_MetadataImpl.setContact(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setContact(Contact);
		}

		cabDirectories_MetadataImpl.setTel(Tel);
		cabDirectories_MetadataImpl.setFax(Fax);

		if (Email == null) {
			cabDirectories_MetadataImpl.setEmail(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setEmail(Email);
		}

		if (Website == null) {
			cabDirectories_MetadataImpl.setWebsite(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setWebsite(Website);
		}

		if (scope == null) {
			cabDirectories_MetadataImpl.setScope(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setScope(scope);
		}

		if (OfficerInCharge == null) {
			cabDirectories_MetadataImpl.setOfficerInCharge(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setOfficerInCharge(OfficerInCharge);
		}

		cabDirectories_MetadataImpl.setTelephoneNo(TelephoneNo);

		if (EmailOfficeIncharge == null) {
			cabDirectories_MetadataImpl.setEmailOfficeIncharge(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setEmailOfficeIncharge(EmailOfficeIncharge);
		}

		if (StandardsUsed == null) {
			cabDirectories_MetadataImpl.setStandardsUsed(StringPool.BLANK);
		}
		else {
			cabDirectories_MetadataImpl.setStandardsUsed(StandardsUsed);
		}

		cabDirectories_MetadataImpl.resetOriginalValues();

		return cabDirectories_MetadataImpl;
	}

	public long SammNo;
	public String OrganizationName;
	public String Field;
	public String type_;
	public String Program;
	public String Status;
	public String SubStatus;
	public String Address;
	public String Contact;
	public long Tel;
	public long Fax;
	public String Email;
	public String Website;
	public String scope;
	public String OfficerInCharge;
	public long TelephoneNo;
	public String EmailOfficeIncharge;
	public String StandardsUsed;
}